import {createApp} from 'vue';
import App from './App.vue';//这里会报错，不支持.vue，所以需要env.d.ts配置文件处理
import './styles/index.scss' // 引入公共样式
import router from "./router/index" // 配置路由
import "amfe-flexible/index"; //可伸缩布局方案 替代了原先的lib-flexible 选用了当前众多浏览器兼容的viewport
import pinia from "@/store";

import "element-plus/es/components/message/style/css";
import "element-plus/es/components/message-box/style/css";

// 引入 echarts
import * as echarts from "echarts"

const app = createApp(App);

// 全局挂载 echarts
app.config.globalProperties.$ECharts = echarts

app.use(router) // 挂载路由
    .use(pinia) //挂载pinia
    .mount("#app")